package com.hz.copyingsystem.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hz.copyingsystem.dao.RecommendSteleCalligraphyCollectionDao;
import com.hz.copyingsystem.entity.RecommendSteleCalligraphyCollectionEntity;
import com.hz.copyingsystem.entity.RecommendSteleCalligraphyEntity;
import com.hz.copyingsystem.service.RecommendSteleCalligraphyCollectionService;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("recommendSteleCalligraphyCollectionService")
public class RecommendSteleCalligraphyCollectionServiceImpl extends ServiceImpl<RecommendSteleCalligraphyCollectionDao, RecommendSteleCalligraphyCollectionEntity> implements RecommendSteleCalligraphyCollectionService {


    @Override
    public List<RecommendSteleCalligraphyCollectionEntity> queryCollectionsByType(Integer rtype) {
        return this.baseMapper.queryCollectionsByType(rtype);
    }

    @Override
    public List<RecommendSteleCalligraphyEntity> restelecalligraphyGet(int curPage, int pageSize, Long rid) {
        curPage = (curPage-1) * pageSize;
        return this.baseMapper.restelecalligraphyGet(curPage, pageSize, rid);
    }

    @Override
    public Integer restelecalligraphyGetNum(Long rid) {
        return this.baseMapper.restelecalligraphyGetNum(rid);
    }

}